package com.eliza.base.views.learn.graphics

import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.navigation.NavController
import androidx.navigation.compose.rememberNavController

@Preview
@Composable
fun LearnIconScreenPre() {
    LearnGraphicsScreen(rememberNavController())
}

@Composable
fun LearnGraphicsScreen(it: NavController) {
    var swi by remember {
        mutableIntStateOf(0)
    }
    Column {
        Button(onClick = { swi = (swi + 1) % 6 }) {
            Text(text = "ROOT點擊切換 $swi", color = Color.Gray)
        }
        when (swi) {
            0 -> DrawX.Show()
            1 -> DrawModifiers.Show()
            2 -> ImagesX.Show()
            3 -> CustomizeX.Show()
            4 -> BrushX.Show()
            5 -> ShapesX.Show()
        }
    }
}
